package com.itjeffrey.autocode.bo.req;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @From: Jeffrey
 * @Date: 2021/4/5
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChangeAuthBO implements Serializable {
    private static final long serialVersionUID = -8485831626310814420L;

    /**
     * 授权/取消授权的角色ID
     */
    private Integer roleId;

    /**
     * 是否授权，true-授权，false-取消授权
     */
    @NotNull(message = "isAuth不允许为空")
    private Boolean isAuth;

    /**
     * 变更的资源列表
     */
    @NotNull(message = "变更的资源列表不允许为空")
    private List<ChangeAuthResBO> changeAuthList;
}
